import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: '/', component: () => import('@/views/login/LoginPage.vue') },
    {
      path: '/login',
      component: () => import('@/views/layout/LayoutContainer.vue'),
      children: [
        {
          path: '/user/insertXY',
          component: () => import('@/views/user/insertXY.vue')
        },
        {
          path: '/layout/xiaoyou',
          component: () => import('@/views/layout/xiaoyou.vue')
        },
        {
          path: '/layout/information',
          component: () => import('@/views/layout/NewsInformation.vue')
        },
        {
          path: '/layout/lunbotu',
          component: () => import('@/views/layout/NewsLunbotu.vue')
        },
        {
          path: '/layout/backschool',
          component: () => import('@/views/layout/LayoutBackschool.vue')
        },
        {
          path: '/organize/area',
          component: () => import('@/views/organize/OrganizeArea.vue')
        },
        {
          path: '/organize/depart',
          component: () => import('@/views/organize/OrganizeDepart.vue')
        },
        {
          path: '/organize/industry',
          component: () => import('@/views/organize/OrganizeIndustry.vue')
        },
        {
          path: '/organize/total',
          component: () => import('@/views/organize/OrganizeTotal.vue')
        },
        {
          path: '/service/campusintro',
          component: () => import('@/views/service/ServiceCampusIntro.vue')
        },
        {
          path: '/service/campuspractice',
          component: () => import('@/views/service/ServiceCampusPractice.vue')
        },
        {
          path: '/service/campusrecruit',
          component: () => import('@/views/service/ServiceCampusRecruit.vue')
        },
        {
          path: '/service/files',
          component: () => import('@/views/service/ServiceFiles.vue')
        },
        {
          path: '/service/gift',
          component: () => import('@/views/service/ServiceGift.vue')
        },
        {
          path: '/service/guide',
          component: () => import('@/views/service/ServiceGuide.vue')
        },
        {
          path: '/service/reissue',
          component: () => import('@/views/service/ServiceReissue.vue')
        },
        {
          path: '/service/study',
          component: () => import('@/views/service/ServiceStudy.vue')
        },
        {
          path: '/activity/backschool',
          component: () => import('@/views/activity/ActivityBackSchool.vue')
        },
        {
          path: '/activity/celebration',
          component: () => import('@/views/activity/ActivityCeleration.vue')
        },
        {
          path: '/activity/exchange',
          component: () => import('@/views/activity/ActivityExchange.vue')
        },
        {
          path: '/activity/graduation',
          component: () => import('@/views/activity/ActivityGraduation.vue')
        },
        {
          path: '/activity/hall',
          component: () => import('@/views/activity/ActivityHall.vue')
        },
        {
          path: '/activity/interview',
          component: () => import('@/views/activity/ActivityInterview.vue')
        },
        {
          path: '/activity/trailer',
          component: () => import('@/views/activity/ActivityTrailer.vue')
        },
        {
          path: '/user/wechat',
          component: () => import('@/views/user/UserWeChat.vue')
        },
        // /user/xiaoyouxinxi
        {
          path: '/user/xiaoyouxinxi',
          component: () => import('@/views/user/xiaoyouxinxi.vue')
        },
        {
          path: '/user/account',
          component: () => import('@/views/user/UserMessage/UserAccount.vue')
        },
        {
          path: '/user/activity',
          component: () => import('@/views/user/UserMessage/UserActivity.vue')
        },
        {
          path: '/user/business',
          component: () => import('@/views/user/UserMessage/UserBusiness.vue')
        },
        {
          path: '/user/class',
          component: () => import('@/views/user/UserMessage/UserClass.vue')
        },
        {
          path: '/user/organize',
          component: () => import('@/views/user/UserMessage/UserOrganize.vue')
        },
        {
          path: '/user/post',
          component: () => import('@/views/user/UserMessage/UserPost.vue')
        },
        {
          path: '/user/status',
          component: () => import('@/views/user/UserMessage/UserStatus.vue')
        }
      ]
    },
    {
      path:'/editor',
      meta:{title:"编辑新闻"},
      component:() => import('@/views/user/UserMessage/editor.vue')
    },
    {
      path: '/layout/xiaoyouedit',
      component: () => import('@/views/layout/xiaoyouedit.vue')
    },
    {
      path:'/service/companyedit',
      component:() => import('@/views/service/ServiceCampusIntroedit.vue')
    },
  ]
})

export default router
